// 头部组件

import React from 'react'
import { View } from 'react-native'
import { Text, Header } from 'react-native-elements'
import {globalColor,pxPage}from '../common/Common'
import LtftDesign from './LtftDesign'

const MyHeader = (_props) => {
    const { title, props } = _props
    return (
        <Header
            backgroundColor={globalColor.defaultColor}
            leftComponent={<LtftDesign props={props} />}
            centerComponent={
                <Text style={{ color: globalColor.defaultFontColor_wi, textAlign: 'center', fontSize: pxPage(23) }}>{title}</Text>
            }
            elevated
        ></Header>
    )
}

export default MyHeader